//
//  GouWuView.m
//  KCFurProject
//
//  Created by ios程序员 on 15/11/28.
//  Copyright © 2015年 ios程序员. All rights reserved.
//

#import "GouWuView.h"

@implementation GouWuView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.jiaRuButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.jiaRuButton.frame = CGRectMake(0, 0, self.frame.size.width/2, 30*HEIGH);
        [self.jiaRuButton setTitle:@"加入购物车" forState:UIControlStateNormal];
        self.jiaRuButton.backgroundColor = [UIColor redColor];
        [self addSubview:self.jiaRuButton];
        
        self.liJiButon = [UIButton buttonWithType:UIButtonTypeCustom];
        self.liJiButon.frame = CGRectMake(self.frame.size.width/2, 0, self.frame.size.width/2, 30*HEIGH);
        [self.liJiButon setTitle:@"立即购买" forState:UIControlStateNormal];
        self.liJiButon.backgroundColor = [UIColor colorWithRed:226/255.0 green:75/255.0 blue:110/255.0 alpha:1];
        [self addSubview:self.liJiButon];


    }
    return self;
}


@end
